for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"use strict";
const winston = require('winston');
const WinstonLogger = winston.Logger;
const ConsoleTransport = winston.transports.Console;
const Logger = require('./Logger');
const globalLogger = new WinstonLogger({
transports: [
new ConsoleTransport({
level: 'debug',
colorize: true,
json: false
})
]
});
/**
* Logger for a speaking stuff
*/
class SpeakerLogger extends Logger {
constructor(name) {
super(globalLogger);
this.name = name;
}
normalizeMessage(message, meta) {
meta
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.
return `${this.name} says "${message}"`;
module.exports = SpeakerLogger;
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.